
<div id="main-content" class="prepend-1 span-19 last">
	<h3>Tambah Sponsor</h3>
<?php 
	if ($addstatus == 'failed') {
		echo '<span class="error">Gagal tambah sponsor. Silakan coba beberapa saat lagi.</span>';
		echo '<div class="clear">'.nbs().'</div>';
	}
	echo form_open($role.'/sponsor/add', array('class' => 'form'));
?>
	<h4>Profil Sponsor</h4>
	<table>
		<tr>
			<td width="200px"><label>Nama</label></td>
			<td>
				<input style="width: 300px!important;" type="text" name="name" value="<?php echo set_value('name'); ?>" maxlength="64" />
				<?php echo form_error('name'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Alamat</label></td>
			<td>	
				<textarea rows="" cols="" name="address" class="textmini"><?php echo set_value('address'); ?></textarea>
				<?php echo form_error('address'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Nama Kontak</label></td>
			<td>
				<input style="width: 300px!important;" type="text" name="contactName" value="<?php echo set_value('contactName'); ?>" maxlength="64" />
				<?php echo form_error('contactName'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Nomor Kontak</label></td>
			<td>
				<input style="width: 300px!important" type="text" name="contactNo" value="<?php echo set_value('contactNo'); ?>" maxlength="32" />
				<?php echo form_error('contactNo'); ?>
			</td>
		</tr>
	</table>
	<h4>Informasi Pengguna Simbion</h4>
	<table>
		<tr>
			<td width="200px"><label>Nama Pengguna</label></td>
			<td>
				<input style="width: 300px!important;" type="text" name="user" value="<?php echo set_value('user'); ?>" maxlength="64" />
				<?php echo form_error('user'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Username</label></td>
			<td>
				<input style="width: 300px!important;" type="text" name="username" value="<?php echo set_value('username'); ?>" maxlength="32" />
				<?php echo form_error('username'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Password</label></td>
			<td>
				<input style="width: 300px!important;" type="password" name="password"  maxlength="32" />
				<?php echo form_error('password'); ?>
			</td>
		</tr>
		<tr>
			<td><label>Konfirmasi Password</label></td>
			<td>
				<input style="width: 300px!important;" type="password" name="confirm"  maxlength="32" />
				<?php echo form_error('confirm'); ?>
			</td>
		</tr>
	</table>
	<input type="submit" name="submit" id="submit" value="Tambah Sponsor" class="submit" />
<?php echo form_close(); ?>
	<div class="clear"><?php echo nbs(); ?></div>
</div>